<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>呼叫管理</title>
    <link rel="icon" href="favicon.ico" type="images/ico">
    <meta name="author" content="dc">
    <link rel="stylesheet" type="text/css" href="/css/materialdesignicons.min.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/animate.min.css">
    <link rel="stylesheet" type="text/css" href="/css/style.min.css">
    <link href="/js/bootstrap-table/bootstrap-table.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/js/jquery-confirm/jquery-confirm.min.css"/>
    <!--固定table列-->
    <link href="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.min.css" rel="stylesheet"/>
    <!--时间选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css"/>
    <!--日期选择插件-->
    <link rel="stylesheet" href="/js/bootstrap-datepicker/bootstrap-datepicker3.min.css"/>
    <!-- 多选下拉 -->
    <link rel="stylesheet" href="/css/bootstrap-select.css" type="text/css"/>
    <link rel="stylesheet" href="/css/skin.css"/>
    <link rel="stylesheet" href="/css/customerManager/user/myCustomerPool.css"/>

</head>
<body>
<div class="container-fluid customer-page">
    <div class="card">
        <div class="card-header">
            <h1>呼叫管理</h1>
        </div>
        <div class="card-body">
            <div class="row content-action">
                <div class="btn-group pull-left">
                    <button type="button" class="btn btn-info " onclick="batchDisable()">
                        批量禁用 </span>
                    </button>
                </div>

                <div class="btn-group pull-left">
                    <button type="button" class="btn btn-info dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        导入 <span class="caret"></span>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="#!" onclick="showImportCallModal()">直接导入</a></li>
                        <li><a href="#!" onclick="downCallTemplate()">下载模板</a></li>
                    </ul>
                </div>

                <div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
                    <div class="pull-right">
                        <div class="min-search pull-left">
                            <input class="form-control" type="text" placeholder="请输入人名/号码" id="searchContent" name="searchContent" autocomplete="off">
                            <button class="btn btn-primary" type="button" onclick="searchContentList()" ><i class="mdi mdi-magnify"></i><span>搜索</span></button>
                        </div>
                    </div>
                </div>
                <div class="col-xs-2">
                    <div class="btn btn-primary" onclick="addCall()">新增
                    </div>
                </div>
            </div>
            <table id="callManagerTable"></table>
        </div>

        <!--绑定用户弹出框-->
        <div class="modal fade" tabindex="-1" role="dialog" id="addUserAccountModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-body">
                        <input type="hidden" id="callId" name="callId">
                        <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12" id="compNamediv">
                            <div>
                                <select id="companySelect" name="companySelect" class="form-control" title="请选择分公司" data-live-search="true">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                            <div>
                                <select id="userSelect" name="userSelect" class="form-control" title="请选择业务员" data-live-search="true">
                                    <option value="">请选择</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer" style="display: flex;justify-content: center;">&nbsp;&nbsp;&nbsp;
                        <button style="margin-right: 20px;" type="button" class="btn btn-primary" onclick="saveBindUser()">保存</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    </div>
                </div>
            </div>
        </div>
        <!--end-->

        <!--导入-->
        <div class="modal fade" id="importCallModal" tabindex="-1" role="dialog"
             aria-labelledby="exampleModalLabel">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-body">
                        <input type="file" id="importCallFile" name="importCallFile">
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary" onclick="importCallList()">导入
                        </button>
                        <button type="button" class="btn btn-default" data-dismiss="modal"
                                onclick="cancelImportCallList()">取消
                        </button>
                    </div>
                </div>
            </div>
        </div>
        <!-- end -->


        <!-- 添加div -->
        <div class="modal fade" tabindex="-1" role="dialog" id="addCall" >
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <form>
                        <div class="modal-body">
                            <!--                    <input type="hidden" id="taskId" name="taskId">-->
                            <div class="row">
                                <div class="col-lg-4 col-md-4 col-sm-6 col-xs-12">
                                    <label class="control-label label-required" for="telephoneNumber">号码</label>
                                    <div class="form-content">
                                        <input type="text" class="form-control" id="telephoneNumber" placeholder="请输入号码">
                                    </div>
                                </div>
                                <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12" id="addCallCompNamediv">
                                    <div>
                                        <select id="addCallCompanySelect" name="addCallCompanySelect" class="form-control" title="请选择分公司" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                    <div>
                                        <select id="addCallUserSelect" name="addCallUserSelect" class="form-control" title="请选择所有人" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                    <div>
                                        <select id="numType" name="addCallUserSelect" class="form-control" title="请选择所有人" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="form-group col-lg-3 col-md-4 col-sm-6 col-xs-12">
                                    <div>
                                        <select id="addCallUserSelect" name="addCallUserSelect" class="form-control" title="请选择所有人" data-live-search="true">
                                            <option value="">请选择</option>
                                        </select>
                                    </div>
                                </div>
                            </div>

                        </div>
                        <div class="modal-footer" style="display: flex;justify-content: center;">&nbsp;&nbsp;&nbsp;
                            <button style="margin-right: 20px;" type="button" class="btn btn-primary" onclick="saveUserAccount()">保存</button>
                            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <!-- end -->
    </div>


</div>
</body>
<script type="text/javascript" src="/js/jquery.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/js/perfect-scrollbar.min.js"></script>
<!--标签插件-->
<script src="/js/jquery-tags-input/jquery.tagsinput.min.js"></script>
<script type="text/javascript" src="/js/main.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table.min.js"></script>
<script type="text/javascript" src="/js/bootstrap-table/bootstrap-table-zh-CN.min.js"></script>
<script type="text/javascript" src="/js/popper.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.min.js"></script>
<!--时间选择插件-->
<script src="/js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="/js/jquery-confirm/jquery-confirm.min.js"></script>
<script src="/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="/js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="/js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="/js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<!-- 多选框下拉 -->
<script type="text/javascript" src="/js/bootstrap-select.js"></script>
<script type="text/javascript" src="/js/bootstrap.lyear.dropdowntree.min.js"></script>
<!--table固定列-->
<script type="text/javascript" src="/js/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js"></script>
<!-- 图表 -->
<script type="text/javascript" src="/js/echarts.min.js"></script>
<!-- 子页面公用js -->
<script src="/js/crm/common/pageCommon.js"></script>
<script src="/js/crm/systemManager/callManager/callManagement.js"></script>
</html>